Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref(onboarding): Consolidate Manual button in integrations #77795

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

priscilawebdev
Copy link
Member

@priscilawebdev priscilawebdev commented Sep 19, 2024

Screen.Recording.2024-09-20.at.14.41.59.mov

closes #77538

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Sep 19, 2024
@priscilawebdev priscilawebdev changed the title ref(onboarding): Consolidate Manual button in intergrations ref(onboarding): Consolidate Manual button in integrations Sep 20, 2024
Copy link

codecov bot commented Sep 20, 2024

Bundle Report

Changes will increase total bundle size by 29.24MB (100.0%) ⬆️⚠️, exceeding the configured threshold of 5%.

Bundle name Size Change
app-webpack-bundle-array-push 29.24MB 29.24MB (100%) ⬆️⚠️

import {getInstallConfig, getSdkInitSnippet} from 'sentry/utils/gettingStartedDocs/node';

type Params = DocsParams;
export enum InstallationMode {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find this repetition very verbose and have the feeling we could make it more reusable 🤔

* Used to show the installation mode for certain platforms, e.g. manual or auto.
* This is defined inside of a platform file
*/
installationMode: string;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more refactoring is needed, I would like to get this from the hook useLoadGettingStarted but added this here for now.

@@ -31,6 +36,7 @@ export function useOnboardingQueryParams(): [
product: decodeList,
showLoader: decodeBoolean,
showManualSetup: decodeBoolean,
installationMode: decodeScalar,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also it would be better to return MANUAL or AUTO from an enum but I did not want to add a custom decode here now

Comment on lines +180 to +189
if (!docsConfig || !dsn || !projectKeyId) {
return (
<LoadingError
message={t(
'The getting started documentation for this platform is currently unavailable.'
)}
onRetry={refetch}
/>
);
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future, we might consider moving this to the parent component, as we currently have the same check within SdkDocumentation

@priscilawebdev priscilawebdev marked this pull request as ready for review September 20, 2024 12:44
@priscilawebdev priscilawebdev requested a review from a team as a code owner September 20, 2024 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move integration installation code to onboarding files
1 participant